/** When your routing table is too long, you can split it into small modules **/

import Layout from '@/layout'
import ModuleLayout from '@/layout/module'

const storeRouter = {
  path: '/store',
  component: Layout,
  redirect: '/store/default',
  name: 'Store',
  meta: {
    title: '店铺',
    icon: 'store'
  },
  children: [
    {
      path: '/store/default',
      component: ModuleLayout,
      redirect: '/store/default/index',
      name: 'StoreDefault',
      meta: {
        title: '店铺',
        icon: 'em-icon-store'
      },
      children: [
        {
          path: '/store/default/index',
          component: () => import('@/views/store/index'),
          name: 'StoreDefaultIndex',
          meta: {
            title: '店铺信息'
          },
          hidden: true
        },
        {
          path: '/store/info/address',
          component: () => import('@/views/shop/info/address'),
          name: 'StoreInfoAddress',
          meta: {
            title: '联系地址'
          },
          hidden: true
        },
        {
          path: '/store/info/authent',
          component: () => import('@/views/shop/info/authent'),
          name: 'StoreInfoAuthent',
          meta: {
            title: '认证信息'
          },
          hidden: true
        },
        {
          path: '/store/info/service',
          component: () => import('@/views/shop/info/service'),
          name: 'StoreInfoService',
          meta: {
            title: '服务保障'
          },
          hidden: true
        }
      ]
    }
  ]
}
export default storeRouter
